<?php

namespace app\common\model;

use think\Model;

class Live extends Model
{
    protected $pk='live_id';
    protected $table='st_live';
    public function checkName($name){
        $check=$this->where('live_name',$name)->where('live_end_time','>',time())->count();
        return $check;
    }
}
